package com.chukun.interview.feature.inf.impl;

import com.chukun.interview.feature.inf.base.Shape;

// 使用java的档案类声明不可变对象：正方形
public record Square02(double side) implements Shape {

    @Override
    public double getArea() {
        return side * side;
    }
}